<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>徐州精诚特卫保安服务有限公司</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/warehousePurchaseAudit.css" rel="stylesheet">
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/style.js"></script>
    <script src="js/warehousePurchaseAudit.js"></script>
    <script src="js/global.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">OA系统</a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="personnelAnalysis.html">人事管理</a></li>
                <!--<li><a href="marketingManager.html">营销管理</a></li>-->
                <li><a href="operationProjectManager.html">运营管理</a></li>
                <!--<li><a href="financialManager.html">财务管理</a></li>-->
                <li class="active"><a href="warehouseGoodsBaseInformation.html">采购管理</a></li>
                <li><a href="ManageDepartment.html">基本设置</a></li>
            </ul>
        </div>
    </div>
</nav>
<div id="" class="container-fluid main-body">
    <div id="left-nav" class="">
        <div class="left-nav-userInfo">
            <div class="userHead">
                <a href="personnelCenter.html"><img class="userImg" src="imgs/user.png" href="personnelCenter.html" data-toggle="tooltip" data-placement="bottom" title="个人中心"></a>
            </div>
            <div class="userTitle">
                <p></p><span class="glyphicon glyphicon-log-out" data-toggle="tooltip" data-placement="top" title="注销" onclick="logout()" aria-hidden="true"></span>
            </div>
        </div>
        <ul class="left-nav-menu">
            <li class="left-nav-menu-li" id="warehouseCheck-menu">
                <a href="warehouseCheck.html" class="menu-link">
                    <img src="imgs/warehouse.png">
                    <div>库存盘点</div>
                </a>
            </li>
            <li class="left-nav-menu-li">
                <a href="warehouseGoodsBaseInformation.html" class="menu-link">
                    <img src="imgs/addressbook.png">
                    <div>物品基本信息</div>
                </a>
            </li>
            <li class="left-nav-menu-li">
                <a class="menu-link">
                    <img src="imgs/brush_fill.png">
                    <div>采购流程    <span class="glyphicon glyphicon-triangle-bottom"></span></div>
                </a>
                <ul class="sub-menu">
                    <li class="sub-menu-li">
                        <a href="warehousePurchaseApplyProcess.html" class="sub-menu-link">
                            流程设置
                        </a>
                    </li>
                    <li class="sub-menu-li">
                        <a href="warehousePurchaseApply.html" class="sub-menu-link">
                            采购申请
                        </a>
                    </li>
                    <li class="sub-menu-li sub-li-active">
                        <a href="warehousePurchaseAudit.html" class="sub-menu-link">
                            采购审核
                        </a>
                    </li>
                </ul>
            </li>
            <li class="left-nav-menu-li">
                <a href="warehouseGoodsPushIn.html" class="menu-link">
                    <img src="imgs/task.png">
                    <div>物品入库</div>
                </a>
            </li>
            <li class="left-nav-menu-li">
                <a href="warehouseGoodsPullOut.html" class="menu-link">
                    <img src="imgs/manage.png">
                    <div>物品出库</div>
                </a>
            </li>
            <li class="left-nav-menu-li">
                <a href="warehouseGoodsGiveBack.html" class="menu-link">
                    <img src="imgs/coupons.png">
                    <div>物品归还</div>
                </a>
            </li>
        </ul>
    </div>
    <!--------------------------------------------------------采购审核panel-------------------------------------------------------------->
    <!---------------------------------------------------------------------------------------------------------------------->
    <div class="right-panel ">

        <div class="nav-path">
            <div class="path-title">
                <ul class="path-ul">
                    <li>采购审核</li>
                </ul>
            </div>
        </div>

        <div class="main-body-content">

            <div class="top-body" style="margin-top: 30px">
                <div class="search-content" style="height: 34px;">
                    <div class="search-left">
                        <div class="dropdown select-department" style="padding:0;float:left;">
                            <button style="border-bottom-right-radius: 0px; border-top-right-radius: 0px;"class="btn btn-default dropdown-toggle" type="button" value='' id="selectStatus-dropdownMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                选择状态
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu selectStatus-dropdownMenu-ul" aria-labelledby="selectStatus-dropdownMenu">
                                <li><a value="-1">全部记录</a></li>
                                <li><a value="0">待审核</a></li>
                                <li><a value="1">通过（未入库）</a></li>
                                <li><a value="2">未通过</a></li>
                                <li><a value="3">通过(已入库)</a></li>
                            </ul>
                        </div>
                        <button style="border-left: none;border-bottom-left-radius: 0px;border-top-left-radius: 0px;"  class="btn btn-default" type="button" onclick="getPurchaseApplyByAuditId()">搜索</button>
                        <button class="btn btn-default" type="button" onclick="getPurchaseApplyinit()">搜索全部</button>
                        <!--<div class="input-group col-xs-4">-->
                            <!--<input id="auditorId-input" type="text" class="form-control" placeholder="审核人编号">-->
                            <!--<span class="input-group-btn">-->
                                <!--<button class="btn btn-default" type="button" onclick="getPurchaseApplyByAuditId()">搜索</button>-->
                                <!--<button class="btn btn-default" type="button" onclick="getPurchaseApplyinit()">搜索全部</button>-->
                            <!--</span>-->
                        <!--</div>-->
                    </div>
                    <div class="search-right">

                    </div>
                </div>
            </div>

            <div class="table-body">
                <table class="table table-bordered">
                    <thead style="background-color: #F9FAFB">
                    <tr>
                        <th style="width: 100px">申请表编号</th>
                        <th>申请人</th>
                        <th>申请时间</th>
                        <th>总金额</th>
                        <th>当前审核人</th>
                        <th>审核状态</th>
                        <th style="width: 50px">审核</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    <tr class="table-tr hidden">
                        <td class="purchaseApply-id"></td>
                        <td class="purchaseApply-staffName"></td>
                        <td class="purchaseApply-applyTime"></td>
                        <td class="purchaseApply-price"></td>
                        <td class="purchaseApply-auditor"></td>
                        <td class="purchaseApply-status"></td>
                        <td class="">
                            <a  data-toggle="modal" data-target="#myModal-PurchaseAuditDetails" onclick="setPurchaseApplyRecordModal(this)"><span class="glyphicon glyphicon glyphicon-check" aria-hidden="true"></span></a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <div class="page-body">
                <ul class="page-ul">
                    <li class="page-ul-li">
                        <div class="input-group" style="width: 110px">
                            <input type="text" class="form-control skipPage" placeholder="">
                            <span class="input-group-btn">
                                  <button id="jump-button" class="btn btn-default" type="button" onclick="skipPage()">跳转</button>
                               </span>
                        </div>
                    </li>
                    <li class="page-ul-li"><a class="btn btn-default page-button" onclick="nextPage()"><span class="caret caret-left"></span></a></li>
                    <li class="page-ul-li" style="margin-top: 8px"><span class="currentPage"></span>/<span class="totalPage"></span></li>
                    <li class="page-ul-li"><a class="btn btn-default page-button" onclick="previousPage()"><span class="caret caret-right"></span></a></li>
                </ul>
            </div>


        </div>
    </div>
</div>
<!--------------------------------------------------------审核表详情modal-------------------------------------------------------------->
<!---------------------------------------------------------------------------------------------------------------------->
<div class="modal fade" id="myModal-PurchaseAuditDetails" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-PurchaseAuditDetails" value="">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-body" style="padding: 15px 20px">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <form class="form-horizontal">
                    <div class="form-group">
                        <div class="top-body" style="margin-top: 30px">
                            <h3 style="text-align: center"><b>审核表详情</b></h3>
                        </div>
                        <div class="main-table col-xs-12 ">
                            <div style="height: 31px; border-bottom: 1px solid #000000">
                                <div class="col-xs-3" style="text-align: center;"><label style="height: 100%; margin-bottom: 0px; line-height: 30px">申请部门</label></div>
                                <div id="purchaseApplyDetails-department" class="col-xs-3" style="border:none; border-right: 1px solid #000000;border-left: 1px solid #000000;height: 30px;line-height: 30px;text-align: center"></div>
                                <div class="col-xs-3" style="text-align: center;"><label style="height: 100%; margin-bottom: 0px; line-height: 30px">申请人</label></div>
                                <div id="purchaseApplyDetails-applyUserName" class="col-xs-3" style="border:none;border-left: 1px solid #000000;height: 30px;line-height: 30px;text-align: center"></div>
                            </div>
                            <div style="height: 31px; border-bottom: 1px solid #000000">
                                <div class="col-xs-3" style="text-align: center;"><label style="height: 100%; margin-bottom: 0px; line-height: 30px">审核流程</label></div>
                                <div id="purchaseApplyDetails-process" class="col-xs-3" style="border:none; border-right: 1px solid #000000;border-left: 1px solid #000000;height: 30px;line-height: 30px;text-align: center"></div>
                                <div class="col-xs-3"  style="text-align: center;"><label style="height: 100%; margin-bottom: 0px; line-height: 30px">审核状态</label></div>
                                <div id="purchaseApplyDetails-status" class="col-xs-3" style="border-left: 1px solid #000000;height:100%;text-align: center;line-height: 30px"></div>
                            </div>
                            <div style="height: 31px; border-bottom: 1px solid #000000">
                                <div class="col-xs-3" style="text-align: center;"><label style="height: 100%; margin-bottom: 0px; line-height: 30px">申请时间</label></div>
                                <div id="purchaseApplyDetails-applyTime" class="col-xs-9" style="border:none; border-left: 1px solid #000000;height: 30px;line-height: 30px;text-align: center"></div>
                            </div>
                            <div style="height: 41px; border-bottom: 1px solid #000000">
                                <div class="col-xs-3" style="text-align: center;"><label style="height: 100%; margin-bottom: 0px; line-height: 40px">原因</label></div>
                                <div id="purchaseApplyDetails-reason" class="col-xs-9" style="border:none; border-left: 1px solid #000000;height: 40px;line-height: 40px;text-align: center"></div>
                            </div>
                            <div class="checkTable-body">
                                <table class="table table-bordered purchaseApplyDetails-table-selfDefine">
                                    <thead>
                                    <tr >
                                        <th style="width: 60px;">序号</th>
                                        <th >名称</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 60px;">单价</th>
                                        <th style="width: 60px;">数量</th>
                                        <th style="border-right: none">金额</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                        <!--<tr class="table-tr">-->
                                            <!--<td>1</td>-->
                                            <!--<td></td>-->
                                            <!--<td></td>-->
                                            <!--<td></td>-->
                                            <!--<td></td>-->
                                            <!--<td style="border-right: none"></td>-->
                                        <!--</tr>-->
                                    </tbody>
                                </table>
                            </div>
                            <div style="height: 41px; border-bottom: 1px solid #000000">
                                <div class="col-xs-6" style="text-align: center;border-right: 1px solid #000000"><label style="height: 100%; margin-bottom: 0px; line-height: 40px">总计金额</label></div>
                                <div id="purchaseApplyDetails-sumPrice" class="col-xs-6"  style="height: 100%;text-align: center;line-height: 40px"></div>
                            </div>
                            <div class="check-div" style="height: 111px; border-bottom: 1px solid #000000">
                                <div class="col-xs-3" style="text-align: center;border-right: 1px solid #000000"><label style="height: 100%; margin-bottom: 0px; line-height: 110px">审核意见</label></div>
                                <div class="col-xs-9"  style="height:100%;text-align: center;padding: 0">
                                    <textarea id="purchaseApplyDetails-note" class="note-div"></textarea>
                                </div>
                            </div>
                            <div style="height: 31px; border-bottom: 1px solid #000000">
                                <div class="col-xs-3" style="text-align: center;border-right: 1px solid #000000"><label style="height: 100%; margin-bottom: 0px; line-height: 30px">审核人</label></div>
                                <div id="purchaseApplyDetails-auditor" class="col-xs-9" style="border:none;height: 30px;line-height: 30px;text-align: center" value=""></div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-default" onclick="submitPurchaseAudit(0)" data-dismiss="modal">不同意</button>
                <button type="button" class="btn btn-primary" onclick="submitPurchaseAudit(1)" data-dismiss="modal">同意</button>
            </div>
        </div>
    </div>
</div>
</body>
</html>